package com.atguigu.spring.beans.cycle;

public class Car {

	private String brand;
	
	public Car() {
		System.out.println("Car's Constructor method...");
	}
	
	public void setBrand(String brand){
		System.out.println("Car's setName method...");
		this.brand = brand;
	}
	
	public String getBrand(){
		System.out.println("Car's getName method...");
		return this.brand;
	}
	
	public void init(){
		System.out.println("init method...");
	}
	
	public void destroy(){
		System.out.println("destroy method...");
	}

	@Override
	public String toString() {
		return "Car [brand=" + brand + "]";
	}

	
	
	
}
